package demoMod.invincibleOne.relics;

import com.badlogic.gdx.graphics.Texture;
import com.megacrit.cardcrawl.actions.common.ApplyPowerAction;
import com.megacrit.cardcrawl.actions.common.RelicAboveCreatureAction;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.powers.ArtifactPower;
import demoMod.invincibleOne.InvincibleOneMod;

public class CostOfBlessing2Artifact extends AbstractInvincibleRelic {
    public static final String ID = InvincibleOneMod.makeID("CostOfBlessing2Artifact");
    public static final Texture IMG = new Texture(InvincibleOneMod.getResourcePath("relics/CostOfBlessing_Artifact.png"));
    public static final Texture OUTLINE_IMG = new Texture(InvincibleOneMod.getResourcePath("relics/CostOfBlessing_Artifact.png"));

    public CostOfBlessing2Artifact() {
        super(ID, IMG, OUTLINE_IMG, RelicTier.SPECIAL, LandingSound.FLAT);
    }

    @Override
    public String getUpdatedDescription() {
        return DESCRIPTIONS[0];
    }

    @Override
    public void atBattleStart() {
        this.flash();
        AbstractPlayer p = AbstractDungeon.player;
        addToBot(new RelicAboveCreatureAction(p, this));
        addToBot(new ApplyPowerAction(p, p, new ArtifactPower(p, 2)));
    }
}
